﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Diagnostics;

namespace RemoteGamePadService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "GamePadService" in code, svc and config file together.
    public class GamePadService : IGamePadService
    {

        #region IGamePadService Members

        private static double angle { get; set; }
        private static double mouseX { get; set; }
        private static double mouseY { get; set; }
        private int inTest=0;

        void IGamePadService.TransmitAngle(double angle)
        {
            GamePadService.angle = angle;
        }

        public double GetAngle()
        {
            return GamePadService.angle;
        }

        public int Test(int i)
        {
            inTest = i;
            return inTest + 2;
        }


        public void TransmitMouseInfo(double x, double y)
        {
            mouseX = x;
            mouseY = y;
        }

        public double GetMouseX()
        {
            return mouseX;
        }

        public double GetMouseY()
        {
            return mouseY;
        }

        #endregion
    }
}
